{{if $do_partial_endering}}
    {{load_view name=`$current_view`}}
{{else}}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>NGBD-cart - Administration</title>
        <meta name="description" content="" />
        <meta name="keywords" content="" />
        <meta name="robots" content="index,follow" />
        <script type="text/javascript">
            var base_index_url     = '{{$base_index_url}}';
            var current_controller = '{{$current_controller}}';
            var current_module     = '{{$current_module}}';
            var current_view       = '{{$current_view}}';
            var module_admin_url   =  base_index_url+"/"+current_module+"/admin"
        </script>
        <link href="{{$core_css}}/admin_css/style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="{{$core_js}}/ui/1.8.5/css/ui-lightness/jquery-ui-1.8.5.custom.css" />

        <!--[if IE 7]><link rel="stylesheet" href="{{$core_css}}/admin_css/ie.css" type="text/css" media="screen, projection" /><![endif]-->
        <!--[if IE 6]><link rel="stylesheet" href="{{$core_css}}/admin_css/ie6.css" type="text/css" media="screen, projection" /><![endif]-->

        <link rel="stylesheet" type="text/css" href="{{$core_js}}/superfish/css/superfish.css" media="screen"/>
        <!--[if IE]>
		<style type="text/css">
		  .clearfix {
		    zoom: 1;     /* triggers hasLayout */
		    display: block;     /* resets display for IE/Win */
		    }  /* Only IE can see inside the conditional comment
		    and read this CSS rule. Don't ever use a normal HTML
		    comment inside the CC or it will close prematurely. */
		</style>
	<![endif]-->
        <!-- JavaScript -->
        <script src="{{$core_js}}/jquery-1.4.2.min.js" type="text/javascript"></script>
        <script src="{{$core_js}}/ui/1.8.5/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>
     
        <script type="text/javascript" src="{{$core_js}}/superfish/superfish.js"></script>
        <script type="text/javascript">
            // initialise plugins
            jQuery(function(){
                jQuery('ul.sf-menu').superfish();
            });

        </script>
        <script type="text/javascript" src="{{$core_js}}/admin_js/custom.js"></script>
        <script type="text/javascript" src="{{$core_js}}/phpfuncs.commonjs.min.js"></script>
        <script src="{{$core_js}}/jquery.blockUI.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="{{$core_js}}/datatables/css/demo_table.css" />
        <script src="{{$core_js}}/datatables/jquery.dataTables.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="{{$core_js}}/tiny_mce/tiny_mce.js"></script>
        <link rel="stylesheet" type="text/css" href="{{$core_css}}/form_gen_lib/form.css" />
        
    </head>
    <body>
        {{load_specific_view name="pop_up_msgs" module="core" views_folder="views"}}
        <div class="container" id="container">
            <div  id="header">
                {{load_specific_view name="logged_user_info" module="core"}}
                <div id="logo"><h1><a href="/">NGBD-cart</a></h1></div>

            </div><!-- end header -->
            <div id="content" >
                {{load_specific_view name="top_menu" module="core"}}
                <div id="content_main" class="clearfix">
                    <table width="100%" cellpadding="5" cellspacing="2">
                        <tr>
                            <td valign="top" width="100%">
                                <div class="section" style="margin-top: 0px;margin-right: 10px" >
                                    {{load_view name=`$current_view`}}
                                </div>
                            </td>
                            <td valign="top">
                                {{load_specific_view name="sidebar" module="core"}}
                            </td>
                        </tr>
                    </table>


                </div><!-- end #content_main -->


                <div  id="footer" class="clearfix">
                    <p class="left">
                        <a href="www.newgenbd.net" target="__blank">NewGenBD Software</a> &copy;  2010. All Rights Reserved.
                    </p>
                    <p class="right" style="margin-right: 20px">{{$smarty.now|date_format:"%A, %B %e, %Y"}}
</p>
                </div><!-- end #footer -->
            </div><!-- end container -->
        </div>
            <script>
                $(function(){
                    var tab = php_js.get_cookie('ui_tab_index');
                    $tabs.tabs('select', tab ? tab : 1 );
                });                
            </script>
    </body>
</html>
{{/if}}